package dhm.com.hpx.entity;

import java.io.Serializable;

import dhm.com.hpx.recyclerview.BaseRecyclerItem;


/**
 * 描述:列表子item实体类
 * <p>
 * 作者:cjs
 * 创建时间:2017年11月03日 11:51
 * 邮箱:chenjunsen@outlook.com
 *
 * @version 1.0
 */
public class MenuItem implements BaseRecyclerItem, Serializable {
    public static final int VIEW_TYPE_NORMAL=0;
    public static final int VIEW_TYPE_DASH=1;
    public static final int ITEM_ID_DASH=-999;

    /**
     * name : 匕首
     * icon : ic_cold_1
     * desc : 传说的匕首,杀人于无形
     * group : cold_weapon
     */

    private String catName;//名字
    private String catId;//item所属组

    public String getName() {
        return catName;
    }

    public void setName(String name) {
        this.catName = name;
    }

    public String getGroup() {
        return catId;
    }

    public void setGroup(String group) {
        this.catId = group;
    }

    private int viewType;
    private int itemId;

    @Override
    public int getViewType() {
        return viewType;
    }

    @Override
    public long getItemId() {
        return itemId;
    }

    public void setViewType(int viewType) {
        this.viewType = viewType;
    }

    public void setItemId(int itemId) {
        this.itemId = itemId;
    }

    @Override
    public String toString() {
        return "MenuItem{" +
                ", viewType=" + viewType +
                ", itemId=" + itemId +
                '}';
    }
}
